package com.bdqn.Di2Zhan;

import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class PhoneDOM4J {
    public static void main(String[] args) {
//        try {
//            SAXReader saxReader = new SAXReader();
//           Document doc = saxReader.read(new File("src/main/java/com/bdqn/Di2Zhan/entity/phone.xml"));
//           Element root = doc.getRootElement();
//        } catch (DocumentException e) {
//            e.printStackTrace();
//        }
    }
}
